<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.jpg">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.jpg">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"matian.connorma.cn","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="整理下 Spring 项目中读取 resources 下的文件的方式，包括 Resource 接口，另外跟一下 ResourceUtils 读取资源文件的流程。 File 方式读取直接使用 File 类的接口读取资源文件，需要注意的是传入应是相对路径，生成的项目文件中资源文件的路径可以参考 target 目录下的结构。比如，资源文件目录下的文件 resources&#x2F;static&amp;#x2F">
<meta property="og:type" content="article">
<meta property="og:title" content="Spring Boot读取 Resource 资源文件">
<meta property="og:url" content="http://matian.connorma.cn/31e339ac.html">
<meta property="og:site_name" content="马天">
<meta property="og:description" content="整理下 Spring 项目中读取 resources 下的文件的方式，包括 Resource 接口，另外跟一下 ResourceUtils 读取资源文件的流程。 File 方式读取直接使用 File 类的接口读取资源文件，需要注意的是传入应是相对路径，生成的项目文件中资源文件的路径可以参考 target 目录下的结构。比如，资源文件目录下的文件 resources&#x2F;static&amp;#x2F">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-01-24T08:13:02.000Z">
<meta property="article:modified_time" content="2024-01-25T12:19:17.207Z">
<meta property="article:author" content="马天">
<meta property="article:tag" content="java">
<meta property="article:tag" content="Spring Boot">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://matian.connorma.cn/31e339ac.html">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>Spring Boot读取 Resource 资源文件 | 马天</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">马天</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://matian.connorma.cn/31e339ac.html">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="马天">
      <meta itemprop="description" content="程序猿">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="马天">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Spring Boot读取 Resource 资源文件
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-01-24 16:13:02" itemprop="dateCreated datePublished" datetime="2019-01-24T16:13:02+08:00">2019-01-24</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Spring/" itemprop="url" rel="index"><span itemprop="name">Spring</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>整理下 Spring 项目中读取 resources 下的文件的方式，包括 Resource 接口，另外跟一下 ResourceUtils 读取资源文件的流程。</p>
<h2 id="File-方式读取"><a href="#File-方式读取" class="headerlink" title="File 方式读取"></a>File 方式读取</h2><p>直接使用 File 类的接口读取资源文件，需要注意的是传入应是相对路径，生成的项目文件中资源文件的路径可以参考 target 目录下的结构。比如，资源文件目录下的文件 resources&#x2F;static&#x2F;test.html，在生成的 target 目录下路径是：target&#x2F;classes&#x2F;static&#x2F;test.html</p>
 <span id="more"></span>

<p>所以可以用以下方式访问：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="type">File</span> <span class="variable">f</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(<span class="string">&quot;target/classes/static/test.html&quot;</span>);</span><br></pre></td></tr></table></figure>

<p>要注意，使用相对路径，使用绝对路径（“&#x2F;”代表根目录）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/target/classes/static/test.html</span><br></pre></td></tr></table></figure>

<p>或者</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">classes/static/test.html</span><br></pre></td></tr></table></figure>

<p>会 “file not found”。</p>
<h2 id="Resource-接口与-ResourceLoader"><a href="#Resource-接口与-ResourceLoader" class="headerlink" title="Resource 接口与 ResourceLoader"></a>Resource 接口与 ResourceLoader</h2><p>Resource 接口抽象了资源文件，提供了 exists()、isFile()、getFile()、getURL() 等方法，并从 InputStreamSource 接口继承了 getInputStream() 方法。InputStreamSource 接口的 getInputStream() 方法保证多次调用此方法时，每次得到的是一个”fresh”的输入流。Resource 接口有对应各种类型资源的实现类，如 ClassPathResource、FileSystemResource、UrlResource 等。</p>
<p>ResourceLoader 接口中定义了 getResource(String location) 方法，用于获取一个 Resource，并且规定其实现需要支持如”file:C:&#x2F;test.dat”、”classpath:test.dat”这样的前缀的 URL。另，一般其实现类 ApplicationContext 支持使用如”WEB-INF&#x2F;test.dat”的相对路径读取文件。</p>
<p>getResource(String location) 不返回 null，对于返回的 Resource 对象，可以使用 exists() 判断资源是否存在。</p>
<p>ResourceLoader 接口的实现有：</p>
<ul>
<li><p>DefaultResourceLoader，子类包括 ClassRelativeResourceLoader、FileSystemResourceLoader、ServletContextResourceLoader等；</p>
</li>
<li><p>ResourcePatternResolver 接口，实现中需要关注的是 ApplicationContext 接口。</p>
</li>
</ul>
<p>当使用了某种协议前缀时，ResourceLoader 返回相应的 Resource 的实现对象，或者不指定时，将根据使用的 ApplicationContext 决定，这是策略模式的一个应用。</p>
<p>注册一个 ResourceLoaderAware 接口的实现类，可以从其回调 setResourceLoader(ResourceLoader resourceLoader) 中得到 ResourceLoader 实例。</p>
<p>使用如下代码可以读取资源文件：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="type">Resource</span> <span class="variable">r</span> <span class="operator">=</span> ApplicationContextUtil.getApplicationContext().getResource(<span class="string">&quot;classpath:static/test.html&quot;</span>);</span><br><span class="line"><span class="comment">// 使用 &quot;file:&quot; 协议也可以读取</span></span><br><span class="line"><span class="comment">// Resource r = ApplicationContextUtil.getApplicationContext().getResource(&quot;file:target/classes/static/test.html&quot;);</span></span><br><span class="line"></span><br><span class="line"><span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> r.getFile();</span><br></pre></td></tr></table></figure>

<p>其中，ApplicationContextUtil 实现了 ApplicationContextAware 接口，来获取 ApplicationContext。</p>
<h2 id="使用-Spring-提供的-ResourceUtils-读取资源文件"><a href="#使用-Spring-提供的-ResourceUtils-读取资源文件" class="headerlink" title="使用 Spring 提供的 ResourceUtils 读取资源文件"></a>使用 Spring 提供的 ResourceUtils 读取资源文件</h2><p>ResourceUtils 提供了 getFile(URL)、getFile(String)方法。但是，类的文档中说明，这一类主要在框架内使用，开发者读取资源文件建议使用的是 ResourceLoader 和 Resource 接口。使用如下：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> ResourceUtils.getFile(<span class="string">&quot;classpath:static/test.html&quot;</span>);</span><br></pre></td></tr></table></figure>

<p>或者</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> ResourceUtils.getFile(<span class="string">&quot;file:target/classes/static/test.html&quot;</span>);</span><br></pre></td></tr></table></figure>

<p>或者</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> ResourceUtils.getFile(<span class="string">&quot;target/classes/static/test.html&quot;</span>);</span><br></pre></td></tr></table></figure>

<p>使用”classpath:”协议和”file:”协议或者直接作为文件路径时，也要使用相对路径。</p>
<p>getFile(String) 方法对以上三种方式，其实现 DefaultResourceLoader 中的实现基本一致，可以看下其代码：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="keyword">static</span> File <span class="title function_">getFile</span><span class="params">(String resourceLocation)</span> <span class="keyword">throws</span> FileNotFoundException &#123;</span><br><span class="line">		Assert.notNull(resourceLocation, <span class="string">&quot;Resource location must not be null&quot;</span>);</span><br><span class="line">		<span class="keyword">if</span> (resourceLocation.startsWith(CLASSPATH_URL_PREFIX)) &#123;</span><br><span class="line">			<span class="type">String</span> <span class="variable">path</span> <span class="operator">=</span> resourceLocation.substring(CLASSPATH_URL_PREFIX.length());</span><br><span class="line">			<span class="type">String</span> <span class="variable">description</span> <span class="operator">=</span> <span class="string">&quot;class path resource [&quot;</span> + path + <span class="string">&quot;]&quot;</span>;</span><br><span class="line">			<span class="type">ClassLoader</span> <span class="variable">cl</span> <span class="operator">=</span> ClassUtils.getDefaultClassLoader();</span><br><span class="line">			<span class="type">URL</span> <span class="variable">url</span> <span class="operator">=</span> (cl != <span class="literal">null</span> ? cl.getResource(path) : ClassLoader.getSystemResource(path));</span><br><span class="line">			<span class="keyword">if</span> (url == <span class="literal">null</span>) &#123;</span><br><span class="line">				<span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">FileNotFoundException</span>(description +</span><br><span class="line">						<span class="string">&quot; cannot be resolved to absolute file path because it does not exist&quot;</span>);</span><br><span class="line">			&#125;</span><br><span class="line">			<span class="keyword">return</span> getFile(url, description);</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">try</span> &#123;</span><br><span class="line">			<span class="comment">// try URL</span></span><br><span class="line">			<span class="keyword">return</span> getFile(<span class="keyword">new</span> <span class="title class_">URL</span>(resourceLocation));</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">catch</span> (MalformedURLException ex) &#123;</span><br><span class="line">			<span class="comment">// no URL -&gt; treat as file path</span></span><br><span class="line">			<span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">File</span>(resourceLocation);</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;</span><br></pre></td></tr></table></figure>

<p>首先检查参数 resourceLocation 是否是使用了”classpath:”的方式，使用了这种方式，使用 ClassLoader 类的 getResource(String) 方法读取文件。</p>
<p>否则尝试将作为其他协议的 URL 读取，如果使用的是”file:”之外的其他协议的 URL，抛出 FileNotFoundException 异常；上文使用”file:”的方式即作为”file:”协议的情况处理，提取 URL 中的文件路径初始化 File 对象。</p>
<p>最后，如果在尝试将 resourceLocation 解析为 URL 时失败，即不是 URL 的情况，URL构造器会抛出 MalformedURLException 异常，此时将尝试把 resourceLocation 作为文件路径读取。</p>
<h2 id="打包为-jar-时的资源读取"><a href="#打包为-jar-时的资源读取" class="headerlink" title="打包为 jar 时的资源读取"></a>打包为 jar 时的资源读取</h2><p>以上示例，是在 IDE 中执行代码时的情况，当把项目打包成 jar 包时，在文件系统中无法找到相应文件，会出现 FileNotFoundException 异常。此时可以使用 InputStreamSource 接口的 getInputStream() 方法来读取资源文件。</p>
<p>代码如下：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="type">Resource</span> <span class="variable">r</span> <span class="operator">=</span> ApplicationContextUtil.getApplicationContext().getResource(<span class="string">&quot;classpath:static/test.html&quot;</span>);</span><br><span class="line"><span class="type">InputStream</span> <span class="variable">in</span> <span class="operator">=</span> r.getInputStream();</span><br></pre></td></tr></table></figure>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/java/" rel="tag"># java</a>
              <a href="/tags/Spring-Boot/" rel="tag"># Spring Boot</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/edeb6a43.html" rel="prev" title="正则表达式语法笔记及常用表达式">
      <i class="fa fa-chevron-left"></i> 正则表达式语法笔记及常用表达式
    </a></div>
      <div class="post-nav-item">
    <a href="/c8a6c539.html" rel="next" title="zabbix的部署">
      zabbix的部署 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#File-%E6%96%B9%E5%BC%8F%E8%AF%BB%E5%8F%96"><span class="nav-number">1.</span> <span class="nav-text">File 方式读取</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Resource-%E6%8E%A5%E5%8F%A3%E4%B8%8E-ResourceLoader"><span class="nav-number">2.</span> <span class="nav-text">Resource 接口与 ResourceLoader</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8-Spring-%E6%8F%90%E4%BE%9B%E7%9A%84-ResourceUtils-%E8%AF%BB%E5%8F%96%E8%B5%84%E6%BA%90%E6%96%87%E4%BB%B6"><span class="nav-number">3.</span> <span class="nav-text">使用 Spring 提供的 ResourceUtils 读取资源文件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%89%93%E5%8C%85%E4%B8%BA-jar-%E6%97%B6%E7%9A%84%E8%B5%84%E6%BA%90%E8%AF%BB%E5%8F%96"><span class="nav-number">4.</span> <span class="nav-text">打包为 jar 时的资源读取</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">马天</p>
  <div class="site-description" itemprop="description">程序猿</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">41</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">17</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">25</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/matian2014" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;matian2014" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:matian1103@qq.com" title="E-Mail → mailto:matian1103@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        
  <div class="beian"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">陕ICP备2023001563号 </a>
  </div>

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2025</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">马天</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
